<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 4/25/17
 * Time: 4:13 PM
 */

namespace backend\modules\api\models;


use yii\behaviors\TimestampBehavior;

class ApiRole extends \common\models\ApiRole
{
	public function behaviors()
	{
		return [
			'timestamp' => [
				'class' => TimestampBehavior::className(),
			],
		];
	}
	
	public function rules()
	{
		return [
			[['name'], 'required'],
			[['created_at', 'updated_at'], 'integer'],
			[['name'], 'string', 'max' => 20],
		];
	}
}